package library.model;

/**
 * @author Dmitry
 */
public class Genre implements Comparable<Genre> {
    private String id;
    private String name;

    public Genre(String id, String name) {
        this.id = id;
        this.name = name;
    }

    
    
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Genre" + "id=" + id + ", name=" + name;
    }

    @Override
    public int compareTo(Genre o) {
        return getName().compareToIgnoreCase(o.getName());
    }
    
    
}
